//
//  MsgDetailHeaderView.m
//  Traveling
//
//  Created by Northwan on 15/6/10.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "MsgDetailHeaderView.h"

@implementation MsgDetailHeaderView

+(instancetype)initHeaderView{
    return [[[NSBundle mainBundle]loadNibNamed:@"MsgDetailHeaderView" owner:nil options:nil]lastObject];
}

-(void)initData:(MessageResult *)result
{
    [self.nameLabel setText:result.title];
    [self.publishTimeLabel setText:[NSString stringWithFormat:@"发布时间:%@",result.publishtime]];
    if(!ISBLANK(result.author)){
        [self.publishAutherLabel setText:[NSString stringWithFormat:@"发布人：%@",result.author]];
    }else{
        [self.publishAutherLabel setText:@"发布人：无"];
    }
    [self.readCountBtn setTitle:result.view forState:UIControlStateNormal];
}

@end
